/*----------------------------------tick-machine-------------------------------*/
#include<iostream>

using namespace std;

class Ticket